export const setLocalStorage = (dataName, data) => {
  localStorage.setItem(dataName, JSON.stringify(data))
}

export const getLocalStorage = (dataName) => {
  return JSON.parse(localStorage.getItem(dataName))
}

export const delLocalStorage = (dataName) => {
  localStorage.removeItem(dataName)
}